Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(calendar-list): restrict calendar visibility toggle to checkbox only #6681

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

zophiana
Copy link
Contributor

Previously, clicking anywhere on the calendar name would toggle its visibility, leading to accidental hiding of calendars. Now the visibility can only be toggled by clicking the checkbox/bullet icon.

Fixes #3027

image

Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.78%. Comparing base (056a8aa) to head (8fb5f97).
Report is 25 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6681      +/-   ##
============================================
+ Coverage     23.00%   28.78%   +5.78%     
- Complexity      475      950     +475     
============================================
  Files           252      294      +42     
  Lines         12112    14395    +2283     
  Branches       2310     2307       -3     
============================================
+ Hits           2786     4144    +1358     
- Misses         8999     9924     +925     
  Partials        327      327              
Flag Coverage Δ
javascript 14.54% <ø> (+0.01%) ⬆️
php 59.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. I tested it and it works.

I left some feedback below.

@st3iny st3iny added bug design Related to design, interface, interaction design, UX, etc. Feature: Calendar list 3. to review Waiting for reviews labels Jan 29, 2025
@zophiana zophiana force-pushed the fix/3027-calendar-visibility-toggle branch from a7138e2 to de1a467 Compare February 1, 2025 08:05
@zophiana
Copy link
Contributor Author

zophiana commented Feb 1, 2025

Thank you for the PR. I tested it and it works.

I left some feedback below.

I was wondering about this too, thanks for you're quick response and feedback

zophiana and others added 2 commits February 1, 2025 09:07
Previously, clicking anywhere on the calendar name would toggle its visibility,
leading to accidental hiding of calendars. Now the visibility can only be
toggled by clicking the checkbox/bullet icon.

Fixes nextcloud#3027

Signed-off-by: Antonia Schwennesen <[email protected]>
The enabled state cannot be persisted in public views, so the toggle
functionality should not be available. Remove click handler from bullet
icon to prevent misleading interaction.

Co-authored-by: Richard Steinmetz <[email protected]>
Signed-off-by: Antonia Schwennesen <[email protected]>
@zophiana zophiana force-pushed the fix/3027-calendar-visibility-toggle branch from de1a467 to 8fb5f97 Compare February 1, 2025 08:07
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works.

Thank you very much for your contribution :)

@st3iny
Copy link
Member

st3iny commented Feb 3, 2025

/backport to stable5.1

@st3iny
Copy link
Member

st3iny commented Feb 3, 2025

/backport to stable5.0

@backportbot backportbot bot added the backport-request A backport was requested for this pull request label Feb 3, 2025
@st3iny st3iny added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 3, 2025
@st3iny st3iny added this to the v5.2.0 milestone Feb 3, 2025
@st3iny st3iny enabled auto-merge February 3, 2025 10:09
@st3iny st3iny merged commit 9f67b6f into nextcloud:main Feb 3, 2025
47 checks passed
@backportbot backportbot bot removed the backport-request A backport was requested for this pull request label Feb 3, 2025
Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug design Related to design, interface, interaction design, UX, etc. Feature: Calendar list feedback-requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calendars accidentally hidden
2 participants